Repository navigation
fix(macos): clear NumericPad from simulated text keys and existing keypad, navigation, and function-key behavior - #23
Conversation
and existing keypad, navigation, and function-key behavior. Refs rustdesk/rustdesk#16227 Signed-off-by: fufesou <linlong1266@gmail.com>
|
Warning Review limit reachedNext included review available in 8 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe macOS simulation path removes the ChangesmacOS text-key normalization
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The macOS keyboard normalization change has no identified merge-blocking risk in the reviewed scope. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
P2: Avoid
We can simply use subtraction instead: event.set_flags(flags - CGEventFlags::CGEventFlagNumericPad);
|
… bitflags 1.x Signed-off-by: fufesou <linlong1266@gmail.com>
Signed-off-by: fufesou <linlong1266@gmail.com>
May fix rustdesk/rustdesk#16227
macOS 27.0, 14.5:
CGEventFlags::CGEventFlagNumericPadis not cleared after pressing numbers on the numpad when NumLock is on.macOS 12.7.6 does not have this issue.
On macOS 27.0, 14.5:
0.´, no outpute,eis printed, notéStill no crash in my tests, but maybe the same root cause.
Summary by CodeRabbit